package com.club.common.exception;

import java.io.Serializable;
import java.util.Formatter;
import java.util.Objects;

/**
 * @author zhangfc
 * @date 2022/10/21 10:30
 */
public class CustomException extends RuntimeException implements Serializable {
    private static final Long serialVersionUUID = 1L;

    public CustomException() {
        super();
    }

    public CustomException(String message) {
        super(message);
    }

    public CustomException(String message, Throwable cause) {
        super(message, cause);
    }

    public CustomException(String message, Objects... args) {
        super(new Formatter().format(message, (Object) args).toString());
    }
}
